package com.movie.mapper.auto;

import com.movie.model.auto.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * <p>
 * 用户表 Mapper 接口
 * </p>
 *
 * @author 达瓦里氏
 * @since 2021-12-16
 */
public interface UserMapper extends BaseMapper<User> {

    /*普通用户登录*/
    User login(String name,String password);

    /*查询管理员*/
    int selectAdmin(String name);
}
